package com.bailong.nanny.service.impl;

import com.bailong.nanny.d.LoginDao;
import com.bailong.nanny.dao.impl.LoginDaoImpl;
import com.bailong.nanny.entity.Admin;
import com.bailong.nanny.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service("login")
public class LoginServiceImpl implements LoginService {
    @Autowired
    private LoginDao loginDao;
    @Override
    public Admin LoginDao(String name,String password) {
        return loginDao.LoginDao(name,password);
    }
}
